package com.dx.financehy.modules.platformClassOne.mapper;

import com.dx.financehy.base.CommonMapper;
import com.dx.financehy.modules.platformClassOne.domain.PlatformClassOne;
import com.dx.financehy.modules.platformClassOne.domain.dto.AddPlatformClassOneDTO;
import com.dx.financehy.modules.platformClassOne.domain.dto.GetPlatformClassDTO;
import com.dx.financehy.modules.system.domain.dto.IsProcessListDTO;
import com.dx.financehy.modules.system.domain.vo.IsProcessListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author: huang_jigao
 * @Title: PlatformClassOneMapper
 * @ProjectName: financehy
 * @Description:
 * @date: 2024-05-14 15:11
 */
@Mapper
public interface PlatformClassOneMapper extends CommonMapper<PlatformClassOne> {

    /**
     * 获取待审核平台资源和主营业务表
     *
     * @param dto
     * @return
     */
    List<IsProcessListVO> getIsProcessList(@Param("dto") IsProcessListDTO dto);

    /**
     * 获取平台资源列表
     *
     * @param dto
     * @return
     */
    List<PlatformClassOne> getPlatformClassList(@Param("dto") GetPlatformClassDTO dto);

    int addPlatformClass(@Param("list") List<AddPlatformClassOneDTO> oneDTOS,
                         @Param("userId") String userId,
                         @Param("createTime") Date createTime);
}
